Experimental Workload: Responsive Design#453
Conversation
1da5897 to
34a545e
Compare
|
Adding reviewers for visibility, feel free to take a look :) |
|
It seems to me that the test doesn't really take the advantage of responsive design since iframe's size is always same. Maybe we should add steps to resize iframe so that responsive design comes into play? |
Currently, we are resizing the the iframe with id |
Oh, I see. We're resizing the inner iframe. I guess that works. |
|
Gentle ping 😄 |
|
I still see rather short run times for individual steps (close to 1.6ms in chrome canary) which might introduce a bit too much noise in the long run. ScrollToChatAndSendMessage and (and especially it's sub-items) will show some aliasing from timer resolution which is ~ 0.1ms on chrome. |
To bump up the step durations, I am thinking of
currently no proposed changes for |
I'll add a fix for that. The webpage was designed to be viewed in 800x600, as that's how it will appear within the benchmark.
Yes, that is expected. Do we prefer a different behavior?
Yes, they are just placeholders. We intended the video elements to be there but did not plan for them to play any actual videos. |
I guess it makes sense for the tests, since it shifts elements on the page. That said, it's not something you'd see on the web (hopefully). I'd expected a modal or something like that instead.
Thanks for clarifying. |
|
@issackjohn - maybe rebase / merge main, to get the updated test runner in there. That should ensure the checks don't fail. |
|
Let's aim for > 5ms for each measured subtest (I'd still aim for roughly 10ms if possible). Does this sound reasonable? |
Sounds good. |
Sounds reasonable to me, I'll add some more actions. |
cd96d0b to
3413c3d
Compare
|
Just double checked on Chrome, Firefox, Safari and the noise levels are in-sync with the rest of the workloads. |
|
Thanks! Looking forward to addressing anymore feedback from folks. |
057e604 to
e7887e9
Compare
✅ Deploy Preview for webkit-speedometer-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
e7887e9 to
698c725
Compare
julienw
left a comment
There was a problem hiding this comment.
Ths looks pretty good to me!
I see that when running npm run dev the dist files get overridden. Do you know if we can make it so the dev files are written in a different location, to minimize risks of errors in the future?
Otherwise my main issue is that the width setting in ReduceWidthIn5Steps and IncreaseWidthIn5Steps don't seem to be captured properly, at least in Firefox on my current machine (which is a bit slow). IMO this needs to be fixed, but this can be done in a follow-up.
Then I have a few more minor comments here and there. I haven't looked very closely at the tailwind code because I'm not familiar with it.
Also I wonder if we could include matchMedia somewhere.
Thanks!
Please add new changes in a separate commit.
698c725 to
2a3113e
Compare
|
|
||
| @layer utilities { | ||
| .content-auto { | ||
| content-visibility: auto; |
There was a problem hiding this comment.
Is content-visibility widely supported across browsers and used on popular sites?
There was a problem hiding this comment.
My understanding is that it is newly baseline as of September 2024. https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility. I see conflicting information here though, it may also be limited availability?
It is also used on 4.65% of page loads on chrome according to https://chromestatus.com/metrics/css/timeline/popularity/662
There was a problem hiding this comment.
content-visibility: auto (that specific value) doesn't seem supported in Safari according to MDN
There was a problem hiding this comment.
Actually it seems supported partially in Safari.
From the chromestatus page, can we see which different values are used and not just the property?
There was a problem hiding this comment.
"auto" seems to be supported as of Safari 26 (2025-09-15) so it's pretty new. Do we want to keep it?
There was a problem hiding this comment.
We prefer to keep it. I'll let others comment as well. @rniwa
Sounds good. I can look into incorporating matchMedia as a follow-up and see where it might make sense to add. |
b1de2cf to
8552b1e
Compare
|
@bgrins, @camillobruni, @rniwa, Could I get someone to take a look at the I'm still working on correctly capturing the other work caused by things like ResizeObserver within the measured time. |
|
Gentle Ping. :) |
b6e0396 to
d049bc2
Compare
|
Created #525 for safari CI run end2end Test failure. |
|
Gentle ping :) |
c7327fe to
cc37f6c
Compare
| this._currentIndex = 0; | ||
| this._carouselWidth = 0; | ||
| // ResizeObserver is used primarily to exercise this API as part of the benchmark. | ||
| this._resizeObserver = new ResizeObserver((entries) => { |
There was a problem hiding this comment.
maybe it would be nice to track the number of resize events we get so we can verify that this is concistent across browsers (console.warn + a strict unittest or so)
There was a problem hiding this comment.
I will do this in a follow up, thanks!
|
Generally LGTM especially for experimental. I'd love to land this so we can start tracking in and see how well it behaves. |
cc37f6c to
eed2854
Compare
eed2854 to
0f2abd2
Compare









This pull request introduces a new experimental responsive design workload, featuring a single-page cooking website built with Lit and Tailwind CSS.
The hosted version can be found here.
Quick link to dev mode with workload selected.
Please look at the README in
experimental/responsive-designfor more information about the code and how it is organized.Not included in this PR: